/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.janalise.main;

import br.com.janalise.view.MainFrame;
import br.com.janalise.view.SplashJframe;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;

/**
 *
 * @author boskyn9
 */
public class Main {

    private static MainFrame instance;
    private static SplashJframe splash;

    public static void splash() {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            splash = new SplashJframe();
            splash.dispose();
        }catch (ExceptionInInitializerError ex) {
           System.exit(0);
        } catch (Exception ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public static void main(String[] args) {
        try {
            splash();
            instance = new MainFrame();
            instance.setVisible(true);
        } catch (IOException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
